import {hyRequest }  from "./index";

export const APISearch = {
  getHotKeyWords() {
    return hyRequest.get("/search/hot")
  },

  getSearchSuggest(keywords, type = 'mobile') {
    return hyRequest.get("/search/suggest", {
      keywords,
      type
    })
  },

  getResultBySearchKeyword(keywords) {
    return hyRequest.get("/search", {
      keywords
    })
  }
}